<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class MemberAddAlipay extends Migration
{
    const TABLE_NAME = 'members';
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table(self::TABLE_NAME, function (Blueprint $table) {
            $table->string('alipay_account', 128)->default('')->comment('支付宝账号');
            $table->string('alipay_name', 20)->default('')->comment('支付宝名字');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table(self::TABLE_NAME, function (Blueprint $table) {
            $table->dropColumn('alipay_account');
            $table->dropColumn('alipay_name');
        });
    }
}
